package com.quad.innovators.salesease.model.form;

import com.quad.innovators.salesease.model.bo.DataPermissionBO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.util.List;

@Schema(description = "角色表单对象")
@Data
public class SysRoleForm {

    @Schema(description="角色编码")
    private String code;

    @Schema(description="角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String name;

    @Schema(description="角色描述")
    private String description;

    @Schema(description="角色状态(1-正常；0-停用)")
    @Range(max = 1, min = 0, message = "角色状态不正确")
    private Integer status;

    @Schema(description="菜单id列表")
    private List<String> menuCodes;

    @Schema(description="数据权限列表")
    private List<DataPermissionBO> dataPermissionDataList;
}
